/*
* @Author: Marte
* @Date:   2017-07-27 09:30:29
* @Last Modified by:   Marte
* @Last Modified time: 2017-07-29 08:53:05
*/

'use strict';

//导入vue包
import Vue from 'vue';
//导入路由包
import VueRouter from 'vue-router'
//在Vue中使用路由
Vue.use(VueRouter)
//导入.vue组件
import App from './App.vue'
import Home from './components/Home.vue'
import About from './components/about.vue'

//定义路由规则

var router = new VueRouter({
    routes:[
        {path:'/Home',component:Home},
        {path:'/about',component:About}
    ]
})

//导入mint组件
import mintui from 'mint-ui'
//在Vue里面使用mintui
Vue.use(mintui)

//导入mintui的css样式
import 'mint-ui/lib/style.min.css'

new Vue ({
    el:'#app',
    router,
    render:c=>c(App)
})

